package com.pactera.madp.cp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author: yangpengwei
 * @time: 2020/12/1 10:50 上午
 * @description stepUpdate 接口请求参数
 */
@Data
@ApiModel(value = "会话存档修改")
public class ReqStepUpdateDTO {

    @NotNull(message = "主键id不能为空")
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @NotNull(message = "可信IP地址不能为空")
    @ApiModelProperty(value = "可信IP地址")
    private List<String> whiteServerIps;

    /**
     * rsa密钥
     */
    @NotBlank(message = "rsa密钥不能为空")
    @ApiModelProperty(value = "rsa密钥")
    private String chatRsaKey;

    /**
     * 会话内容存档secret
     */
    @NotBlank(message = "会话存档secret不能为空")
    @ApiModelProperty(value = "会话内容存档secret")
    private String chatSecret;

    /**
     * 存档状态 0不存储 1存储
     */
    @NotNull(message = "存档状态不能为空")
    @ApiModelProperty(value = "存档状态 0不存储 1存储")
    private Integer chatStatus;
    
}
